Avoid a crash in css font features values
authorMatthias Clasen <mclasen@redhat.com>
Thu, 27 Feb 2020 12:47:37 +0000 (07:47 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 27 Feb 2020 19:30:58 +0000 (14:30 -0500)
gtk/gtkcssfontfeaturesvalue.c

index 9e1b0ad2670299fd7c8fc54b0f75544c060653d9..c5f79eff89fe0c0701624eed17453b4266a339b1 100644 (file)
@@ -170,9 +170,7 @@ gtk_css_font_features_value_new_empty (void)
   GtkCssValue *result;
 
   result = _gtk_css_value_new (GtkCssValue, &GTK_CSS_VALUE_FONT_FEATURES);
-  result->features = g_hash_table_new_full (g_str_hash, g_str_equal,
-                                        g_free,
-                                        (GDestroyNotify) _gtk_css_value_unref);
+  result->features = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
   result->is_computed = TRUE;
 
   return result;